package com.ruoyi.db.domain;

import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 线索基本信息对象 lq_source_base_info
 * 
 * @author ruoyi
 * @date 2023-12-28
 */
@Data
public class SourceBaseInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 渠道编号 */
    @Excel(name = "渠道编号")
    private String channelCode;

    /** 渠道名称 */
    @Excel(name = "渠道名称")
    private String channelName;
    private String checkTimeout;
    private String registerTimeout;
    private String typeRate;
    private String priceType;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal priceAmount;

    /** 溢价率（价格*溢价率=推送价格） */
    @Excel(name = "溢价率", readConverterExp = "价=格*溢价率=推送价格")
    private BigDecimal priceRate;

    /** 扣量 */
    @Excel(name = "扣量")
    private BigDecimal lessRate;
    private Long requestCountLimit;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** api_key */
    @Excel(name = "api_key")
    private String apiKey;
    private String factoryType;

    /** api_secret */
    @Excel(name = "api_secret")
    private String apiSecret;

    /** pub_key */
    @Excel(name = "pub_key")
    private String pubKey;

    /** pri_key */
    @Excel(name = "pri_key")
    private String priKey;

    /** 回调地址 */
    @Excel(name = "回调地址")
    private String callbackUrl;

    //线上限制最低返回价格
    private BigDecimal checkMinPrice;

    private BigDecimal dealMinPrice;
    private BigDecimal dealMaxPrice;

}
